<%--
  作者:张伟

  联系:adamzzww@163.com
  时间:2016-11-27
  说明:无
--%>
<%@ page import="cn.zzszxyy.hr.model.UserEntity" %>
<%@ page import="cn.zzszxyy.hr.comm.Global" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String _req_path = request.getContextPath() + Global.PATH;
    UserEntity user = (UserEntity) request.getSession().getAttribute(Global.COOKIE_USER_OBJECT);
%>
<%--
    作者:张伟

    联系:adamzzww@163.com
    时间:2016-08-24
    说明:导航栏
--%>

<nav class="navbar navbar-default" role="navigation">
    <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse-example">
            <span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="#" style="font-size: 18px;">
            <img src="<%=request.getContextPath()%>/assets/images/logo.png"
                 width="40" height="30" style="display: inline;">&nbsp;&nbsp;人力资源系统Demo
        </a>
    </div>
    <!-- 导航项目 -->
    <div class="collapse navbar-collapse navbar-collapse-example">
        <ul class="nav navbar-nav" id="nav">
            <c:out value="<%=cn.zzszxyy.hr.comm.Global.JSP_MENU_CONTENT%>" escapeXml="false"/>
            <li>
                <a class="dropdown-toggle" data-toggle="dropdown">欢迎 [<%=user.getUserName()%>]<span
                        class="caret"></span></a>
                <ul class="dropdown-menu">
                    <li><a target="_blank" href="<%=_req_path%>/employee/browse/<%=user.getUserId()%>">个人简历</a></li>
                    <%--<li><a href="<%=_req_path%>/user/toChangePwd">修改密码</a></li>--%>
                    <li><a href="<%=_req_path%>/user/logOut">退出</a></li>
                </ul>
            </li>

        </ul>

    </div>

</nav>


